<?php


namespace App\Services;


use App\Models\Commander;

class AuditRegimentalAdd
{
    static public function auditRegimentalAdd($data)
    {
//        dd($data['uid']);
        $param = [
            'uid'=>$data['uid'],
            'username'=>$data['username'],
            'tel'=>$data['tel'],
            'card_id'=>$data['card_id'],
            'site'=>$data['site'],
            'district'=>$data['district'],
            'detailed_address'=>$data['detailed_address'],
//            'status'=>$data['status'],
//            'empirical'=>$data['empirical']
        ];
        $res = Commander::create($param);
        if($res){
            return Request::success(200,'团长添加成功等待审核','');
        }
    }
}